import QtQuick 2.0
import Sailfish.Silica 1.0

import "../../components"
import "./NewAccountPage.js" as Js

Dialog {
    id: dialog

    allowedOrientations: Orientation.Portrait

    property string private_key

    Component.onCompleted: Js.handleReady()
    Component.onDestruction: Js.handleDestroy()

    Column {
       width: parent.width

       DialogHeader {
           acceptText: "Connect"
           title: "Add an account"
       }

       TextField {
           id: tokenField
           width: parent.width
           placeholderText: "Authorization token"
           text: private_key
           label: "Token"
        }

        Button {
            id: showWebView
            width: parent.width
            text: "Try to get with webview"
            onClicked: console.log("clicked!")
        }
    }
}
